<div class="col-sm-12">
  <!-- BOX -->
  <div class="box">
    <div class="box-body">
      <div id="datatable1_wrapper" class="dataTables_wrapper form-inline" role="grid">
      	<div class="row">
          <div class="col-sm-9 nopadding-left">
        	  <!--搜索-->
            <div class="col-sm-7" style="font-size:24px;">
        	    <div class="input-group">
            		{{assessTypeName}}
        	    </div>
        	  </div>
        	  <!--搜索-->
          </div>
          <div class="user-add-btn col-sm-3 nopadding-right pull-right">
            {{#ui/mix-button class="user-btn pull-right " iconClass="fa-plus"  text='新增评估模板'  clickAction="addEva" addEva="addEva"}}
            {{/ui/mix-button}}
          </div>
      	</div>
        <table id="datatable1" cellpadding="0" cellspacing="0" border="0"  class="datatable table table-bordered table-hover dataTable" aria-describedby="datatable1_info">
          <thead>
            <tr role="row">
              <th rowspan="1" colspan="1" width="">模板名称</th>
              <th rowspan="1" colspan="1" width="">创建时间</th>
              <th rowspan="1" colspan="1" width="">创建人</th>
              <th rowspan="1" colspan="1" width="">使用状态</th>
              <th rowspan="1" colspan="1" width="">操作</th>
            </tr>
          </thead>
          {{#if evaList}}
          <tbody role="alert" aria-live="polite" aria-relevant="all" class="">
            {{#each evaList  as |eva|}}
            <tr class="pointer" {{action "goDetail" eva on="click"}}>
              <td class="ellipsis">{{eva.title}}</td>
              <td>{{eva.createTime}}</td>
              <td>{{eva.createUser.name}}</td>
              <td>{{eva.useStatus}}</td>
              <td>
                {{#if (eq eva.useFlag 1)}}
                  <a {{action "useEva" eva bubbles=false}}>使用</a>
                {{else}}
                  <a {{action "useEva" eva bubbles=false}}>禁用</a>
                {{/if}}
              </td>
            </tr>
            {{/each}}
          </tbody>
          {{else}}
          <div class="nodate">暂无数据</div>
          {{/if}}
        </table>
      </div>
    </div>
  </div>
  <!-- /BOX -->
</div>


{{#if addNewEva}}
	{{#bs-modal body=false footer=false header=false closedAction=(action "invitation")}}

		{{#bs-modal-header}}
			<h3 class="modal-title">新增模板</h3>
		{{/bs-modal-header}}
		{{#bs-modal-body}}
    {{#bs-form formLayout=formLayout model=evaModel invalid=(action "invalid")}}
			<div class="col-xs-12 nopadding-horizontal">
				<div class="col-xs-12 nopadding-left">
					<div class="form-input-group">
						<span class="input-group-addon">模板标题：</span>

              {{#bs-form-element class="inline-block form-input-group" controlType="title"  property="title" }}
						      {{input class="input-group-content" type='text' value=title}}
              {{/bs-form-element}}

					</div>
				</div>
      </div>
      {{/bs-form}}
		{{/bs-modal-body}}
		{{#bs-modal-footer class="user-add-btn"}}
      {{#ui/mix-button class="user-btn edit-btn" iconClass="fa fa-save"  text='确定' clickAction="saveNewEva" saveNewEva="saveNewEva"}}
      {{/ui/mix-button}}
      {{#ui/mix-button class="user-btn times-btn" iconClass="fa fa-undo"  text='取消'  clickAction="invitation" invitation="invitation"}}
      {{/ui/mix-button}}
		{{/bs-modal-footer}}
	{{/bs-modal}}
{{/if}}
